function Dep() {
  this.watchList = []
}

Dep.prototype.addWatcher = function (w) {
  this.watchList.push(w)
}

Dep.prototype.notify = function () {
  this.watchList.forEach(w => w.update())
}

export default Dep